var app = angular.module('say',['ngRoute','ngAnimate']);
var mainUrl = 'http://safety.shougang.com.cn/srp';
var localStorage = window.localStorage;
function getInputs() {
    var input =document.getElementsByTagName('input');
    for(var i=0;i<input.length;i++){
      if(input[i].value==''){
          mui.alert('请填写'+input[i].placeholder,'请补全您的表单','确定');
          return false;
      }

    }
    return true;
}
var getNowFormatDate =  function getNowFormatDate() {
    var date = new Date();
    var seperator1 = "-";
    var seperator2 = ":";
    var month = date.getMonth() + 1;
    var strDate = date.getDate();
    if (month >= 1 && month <= 9) {
        month = "0" + month;
    }
    if (strDate >= 0 && strDate <= 9) {
        strDate = "0" + strDate;
    }
    var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
        + " " + date.getHours() + seperator2 + date.getMinutes()
        + seperator2 + date.getSeconds();
    return currentdate;
}
var token = localStorage.getItem('token');
app.config(['$routeProvider', function($routeProvider){
        $routeProvider
            .when('/',{templateUrl:'./pages/login.html'})
           /* .when('/shouye',{template:'nmb'})*/
            .when('/wode',{templateUrl:'./pages/wodeCtrl/wode.html'})
            /*.when('/wode',{template:'mmp'})*/
            .when('/qixianneiweizhenggai',{templateUrl:'./pages/qxnwzgCtrl/qxnwzg.html'})
             .when('/qingxianneiweizhengYhxq',{templateUrl:'./pages/qxnwzgCtrl/qingxianneiweizhengYhxq.html'})
            .when('/paicha',{templateUrl:'./pages/paichaCtrl/paicha.html'})
            .when('/renwuxiangqing',{templateUrl:'./pages/paichaCtrl/renwuxiangqing.html'})
            .when('/yinhuanluru',{templateUrl:'./pages/paichaCtrl/yinhuanluru.html'})
            .when('/yinhuanliuzhuan',{templateUrl:'./pages/paichaCtrl/yinhuanliuzhuan.html'})
            .when('/yinhuanchangsuo',{templateUrl:'./pages/paichaCtrl/yinhuanchangsuo.html'})
            .when('/fuzeren',{templateUrl:'./pages/paichaCtrl/fuzeren.html'})
            /*整改时限是一个时间选择*/
            .when('/zhenggaishixian',{templateUrl:'./pages/paichaCtrl/zhenggaishixian.html'})
            .when('/daiban',{templateUrl:'./pages/daibanCtrl/daiban.html'})
            .when('/daiban',{templateUrl:'./pages/daibanCtrl/daiban.html'})
            .when('/qingjiadaili',{templateUrl:'./pages/daibanCtrl/qingjiadailiCtrl/qingjiadaili.html'})
           // .when('/jianloushenpi',{templateUrl:'./pages/daibanCtrl/jianloushenpiCtrl/jianloushenpi.html'})
           	.when('/loujianshengpixiangqing',{templateUrl:'./pages/daibanCtrl/jianloushenpiCtrl/loujianshengpixiangqing.html'})
           	.when('/weizhidingjihuayinhuan',{templateUrl:'./pages/daibanCtrl/weizhidingjihuayinhuan/wzdjhyh.html'})
           	.when('/wzdjhyhxq',{templateUrl:'./pages/daibanCtrl/weizhidingjihuayinhuan/wzdjhyhxq.html'})
           	.when('/renyuanxuanze',{templateUrl:'./pages/daibanCtrl/weizhidingjihuayinhuan/renyuanxuanze.html'})
           	.when('/yingjiyuan',{templateUrl:'./pages/daibanCtrl/weizhidingjihuayinhuan/yingjiyuan.html'})
           	.when('/weizenggaiyinhuan',{templateUrl:'./pages/daibanCtrl/weizenggaiyinhuan/weizenggaiyinhuan.html'})
           	.when('/wzgyhxq',{templateUrl:'./pages/daibanCtrl/weizenggaiyinhuan/wzgyhxq.html'})
           	.when('/shenqing',{templateUrl:'./pages/daibanCtrl/jianloushenpiCtrl/shenqing.html'})
           	.when('/shenpirenyuanxuanze',{templateUrl:'./pages/daibanCtrl/jianloushenpiCtrl/shenpirenyuanxuanze.html'})
            .when('/duban',{templateUrl:'./pages/dubanCtrl/duban.html'})
            .when('/dubanyinhuanXq',{templateUrl:'./pages/dubanCtrl/dubanyinhuanXq.html'})
            .when('/lishirenwu',{templateUrl:'./pages/lishirenwuCtrl/lishirenwu.html'})
            .when('/baogao',{templateUrl:'./pages/baogaoCtrl/baogao.html'})
            .when('/yinhuanchaxun',{templateUrl:'./pages/yinhuanchaxunCtrl/yinhuanchaxun.html'})
            .when('/tongjifenxi',{templateUrl:'./pages/tongjifenxiCtrl/tongjifenxi.html'})
            .when('/chakanqushitu',{templateUrl:'./pages/chakanqushitu/chakanqushituCtrl.html'})
            .when('/xitongshezhi',{templateUrl:'./pages/xitongshezhi/xitongshezhi.html'})
            .when('/shouye',{templateUrl:'./pages/shouyeCtrl/shouye.html'})
            .when('/liuzhuanyinhuanchangsuo',{templateUrl:'./pages/paichaCtrl/liuzhuanyinhuanchangsuo.html'})
            .when('/liuzhuanfuzeren',{templateUrl:'./pages/paichaCtrl/liuzhuanfuzeren.html'})
            .when('/buhegezhenggai',{templateUrl:'./pages/daibanCtrl/buhegezhenggai/buhegezhenggai.html'})
            .when('/bhgzgxq',{templateUrl:'./pages/daibanCtrl/buhegezhenggai/buhegezhenggaixiangqing.html'})
            .when('/jingqingqidai',{templateUrl:'./pages/jingqingqidai.html'})
            .when('/daibanyingjiyuan',{templateUrl:'./pages/daibanCtrl/daibanyingjiyuan.html'})
            .when('/daiyanshouyinhuan',{templateUrl:'./pages/daibanCtrl/daiyanshouyinhuan/daiyanshouyinhuan.html'})
            .when('/daiyanshouyinhuanxiangqing',{templateUrl:'./pages/daibanCtrl/daiyanshouyinhuanxiangqing/daiyanshouyinhuanxiangqing.html'})
            .when('/daizhipaiduban',{templateUrl:'./pages/daibanCtrl/daizhipaiduban/daizhipaiduban.html'})
            .when('/daizhipaidubanxiangqing',{templateUrl:'./pages/daibanCtrl/daizhipaiduban/daizhipaidubanxiangqing.html'})
            .when('/daidubanyinhuan',{templateUrl:'./pages/daibanCtrl/daidubanyinhuan/daidubanyinhuan.html'})
            .when('/daidubanyinhuanxiangqing',{templateUrl:'./pages/daibanCtrl/daidubanyinhuan/daidubanyinhuanxiangqing.html'})
            .when('/liuzhuandaichuliyinhuan',{templateUrl:'./pages/daibanCtrl/liuzhuandaichuliyinhuan/liuzhuandaichuliyinhuan.html'})
            .when('/liuzhuandaichuliyinhuanxiangqing',{templateUrl:'./pages/daibanCtrl/liuzhuandaichuliyinhuan/liuzhuandaichuliyinhuanxiangqing.html'})
            .when('/liuzhuandaichuliyinhuanziye',{templateUrl:'./pages/daibanCtrl/liuzhuandaichuliyinhuan/liuzhuandaichuliyinhuanziye.html'})
            .when('/loujiandaishenqing',{templateUrl:'./pages/daibanCtrl/loujiandaishenqing/loujiandaishenqing.html'})
            .when('/loujianshenqingPage',{templateUrl:'./pages/daibanCtrl/loujiandaishenqing/loujianshenqingPage.html'})
            .when('/loujiandaishenpi',{templateUrl:'./pages/daibanCtrl/loujiandaishenpi/loujiandaishenpi.html'})
            .otherwise({redirectTo:'/'});

    }]);
